-- GENERATED SPELL FOR [Deze Snowbane] --


function spell0_15006(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15006', 625, 1)
end

function spell1_15006(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15006', 5328, 1)
end

function spell2_15006(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_15006', 663, 1)
end

function spell3_15006(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_15006', 2000, 1)
end

function Sorts_15006(pUnit, Event)
local choix_sorts_15006 = math.random(0, 3)
if choix_sorts_15006 == 0 then
pUnit:RegisterEvent('spell0_15006', 1, 1)
end
if choix_sorts_15006 == 1 then
pUnit:RegisterEvent('spell1_15006', 1, 1)
end
if choix_sorts_15006 == 2 then
pUnit:RegisterEvent('spell2_15006', 1, 1)
end
if choix_sorts_15006 == 3 then
pUnit:RegisterEvent('spell3_15006', 1, 1)
end
end

function mob15006_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15006', math.random(1500, 3000), 1)
end

function mob15006_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15006_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15006_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15006, 1, 'mob15006_Action')
RegisterUnitEvent(15006, 2, 'mob15006_Leave')
RegisterUnitEvent(15006, 3, 'mob15006_Kill')
RegisterUnitEvent(15006, 4, 'mob15006_Die')
